package cn.buk.api.shdl.dto;

/**
 * @author yfdai
 */
public class MyLocalDate {
  private int year;
  private int month;
  private int day;

  public static MyLocalDate create(int year, int month, int day) {
    MyLocalDate myDate = new MyLocalDate();
    myDate.setYear(year);
    myDate.setMonth(month);
    myDate.setDay(day);

    return myDate;
  }

  @Override
  public String toString() {
    return String.format("%04d-%02d-%02d", this.year, this.month, this.day);
  }

  public int getYear() {
    return year;
  }

  public void setYear(int year) {
    this.year = year;
  }

  public int getMonth() {
    return month;
  }

  public void setMonth(int month) {
    this.month = month;
  }

  public int getDay() {
    return day;
  }

  public void setDay(int day) {
    this.day = day;
  }
}
